<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
if(session.getAttribute("account") == null){
	response.sendRedirect("index.jsp");
}
%>
<!DOCTYPE html>
<html><!-- InstanceBegin template="/Templates/indexLogin.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>个人信息管理系统</title>

<link href="jquery-mobile/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css" />
<script src="jquery-mobile/jquery-1.6.min.js"></script>
<script src="jquery-mobile/jquery.mobile-1.0.min.js"></script>

<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">

</script>
<!-- InstanceEndEditable -->
</head> 
<body> 

<div data-role="page" id="page">
	<div data-role="header">

	<!-- InstanceBeginEditable name="header" -->
    <h1>计划列表</h1>
    <!-- InstanceEndEditable -->
        	<a href="logoff" data-role="button" class="ui-btn-right">
    注销
    </a>
           <div data-role="navbar">
        	<ul>
            <li><a href="dayAtAGlanceAction" id="main">一日行程</a></li>
            <li><a href="noteList" id="notes">便签</a></li>
            <li><a href="taskList" id="tasks">任务</a></li>
            <li><a href="contactList" id="contacts">联系</a></li>
            <li><a href="appointmentList" id="appointments">约会</a></li>
            </ul>
        </div>
	</div>
	<!-- InstanceBeginEditable name="content" -->
  <div data-role="content">
    <s:if test="%{!appointments.isEmpty()}">
      <ul data-inset="true" data-role="listview" data-split-theme="d" data-filter="true" dzhtata-filter-placeholder="搜索主题">
      <div data-role="collapsible-set">
        <s:iterator value="appointments">
          <li data-role="collapsible">
          <h1 class="ui-li-heading">主题：
                <s:property value="subject"/>
              </h1>
            <div class="ui-grid-a" 
          
            >
              
              <a href="m_controldialog.jsp?updateUrl=appointmentForware?operate=update&id=<s:property value="app_id"/>&deleteUrl=appointmentForware?operate=delete&target=appointment.app_id" data-rel="dialog">
              <div class="ui-block-a"> <h1>开始时间：
                <s:property value="startTime"/>
                </h1> <span class="ui-li-desc">结束时间：
                <s:property value="endTime" />
                </span> </span> <span class="ui-li-desc">地点：
                <s:property value="location" />
                </span> </div>
              <div class="ui-block-b"> <h1>内容：
                <s:property value="comments" />
                </h1> </div>
              </a> </div>
          </li>
        </s:iterator>
        </div>
      </ul>
    </s:if>
    <s:else>
      <p>暂时没有计划!!!</p>
    </s:else>
  </div>
  <!-- InstanceEndEditable -->
	<!-- InstanceBeginEditable name="footer" -->
  <div data-role="footer" align="center"> <a href="m_appointmentCreate.jsp" data-icon="plus" data-iconpos="top" >创建新的约会</a> </div>
  <!-- InstanceEndEditable -->
</div>
<!-- InstanceBeginEditable name="endLoad" --> 
<script type="text/javascript">

</script> 
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
